/*
 * @Author: your name
 * @Date: 2020-08-04 08:23:22
 * @LastEditTime: 2020-08-04 08:25:22
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \dcg-vue-init\src\store\modules\error.js
 */
const state = {
  errList: []
}

const mutations = {
  addErr(state, payload) {
    state.errList.unshift(payload)
  }
}

const actions = {
  addErr({ commit }, payload) {
    commit('addErr', payload)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
